package com.adcc.ags.msgStore.entity.db;

import java.util.Date;

/**
 * DB消息实体
 */
public class DBMessage {
    private int id;
    private String msgType;
    private Date datetime;
    private String sender;
    private String receiver;
    private String rawMsg;
    private byte[] longMsg;
    private String errorCode;
    private String msgId;
    private String errorUserId;
    private int type;
    private String part1;
    private String part2;
    private String part3;
    private String part4;
    private String part5;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getRawMsg() {
        return rawMsg;
    }

    public void setRawMsg(String rawMsg) {
        this.rawMsg = rawMsg;
    }

    public byte[] getLongMsg() {
        return longMsg;
    }

    public void setLongMsg(byte[] longMsg) {
        this.longMsg = longMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getErrorUserId() {
        return errorUserId;
    }

    public void setErrorUserId(String errorUserId) {
        this.errorUserId = errorUserId;
    }

    public String getPart1() {
        return part1;
    }

    public void setPart1(String part1) {
        this.part1 = part1;
    }

    public String getPart2() {
        return part2;
    }

    public void setPart2(String part2) {
        this.part2 = part2;
    }

    public String getPart3() {
        return part3;
    }

    public void setPart3(String part3) {
        this.part3 = part3;
    }

    public String getPart4() {
        return part4;
    }

    public void setPart4(String part4) {
        this.part4 = part4;
    }

    public String getPart5() {
        return part5;
    }

    public void setPart5(String part5) {
        this.part5 = part5;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "DBMessage{" +
                "id=" + id +
                ", msgType='" + msgType + '\'' +
                ", datetime=" + datetime +
                ", sender='" + sender + '\'' +
                ", receiver='" + receiver + '\'' +
                ", rawMsg='" + rawMsg + '\'' +
                ", errorReason='" + errorCode + '\'' +
                ", msgId='" + msgId + '\'' +
                ", errorUserId='" + errorUserId + '\'' +
                ", part1='" + part1 + '\'' +
                ", part2='" + part2 + '\'' +
                ", part3='" + part3 + '\'' +
                ", part4='" + part4 + '\'' +
                ", part5='" + part5 + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
